Produces the set union of two parallel sequences by using a specified IEqualityComparer{T}.
Namespace:
System.Linq
Assembly:
System.Threading (in System.Threading.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Shared Function Union(Of TSource) ( _
first As ParallelQuery(Of TSource), _
second As ParallelQuery(Of TSource), _
comparer As IEqualityComparer(Of TSource) _
) As ParallelQuery(Of TSource) |
Parameters
- first
- Type: System.Linq..::.ParallelQuery<(Of <(TSource>)>)
A sequence whose distinct elements form the first set for the union.
- second
- Type: System.Linq..::.ParallelQuery<(Of <(TSource>)>)
A sequence whose distinct elements form the second set for the union.
- comparer
- Type: System.Collections.Generic..::.IEqualityComparer<(Of <(TSource>)>)
An IEqualityComparer<(Of <(T>)>) to compare values.
Type Parameters
- TSource
- The type of the elements of the input sequences.
Return Value
A sequence that contains the elements from both input sequences, excluding duplicates.
Exceptions
Exception | Condition |
---|
System..::.ArgumentNullException |
first or second is a null reference (Nothing in Visual Basic).
|
See Also